package com.example.pojo;


import lombok.Data;

import java.util.List;

/**
 * 保存分页查询结果的类
 */
@Data
public class PageResult<T> {

    private Long total; // 总记录数
    private List<T> rows; // 每页记录

    public PageResult() {
    }
    public PageResult(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
}
